package com.hh.customerservice.feign;

import com.hh.customerservice.feign.hystrix.CustomerRentFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 这里需要指定熔断的类
 */
@FeignClient(value = "rent-car-service", fallback = CustomerRentFeignHystrix.class)
public interface CustomerRentFeign {

    @GetMapping("/rent")
    String rent();
}
